<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j">

    <ui:composition>
        <rich:modalPanel id="excluir-membro-modal" autosized="true" moveable="false" resizeable="false">
            <f:facet name="header">
                <h:outputText value="Deseja realmente excluir este membro?" style="padding-right:15px;"/>
            </f:facet>
            <f:facet name="controls">
                <h:panelGroup>
                    <h:form>
                        <a4j:commandLink>
                            <h:graphicImage id="hidelink" value="/img/close.png" border="0" />
                            <rich:componentControl for="excluir-membro-modal" operation="hide" event="onclick" />
                        </a4j:commandLink>
                    </h:form>
                </h:panelGroup>
            </f:facet>

            <a4j:region>
                <h:form>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td align="center" width="50%">
                                    <a4j:commandButton value="sim" ajaxSingle="true"
                                                       action="#{AdministrarMembrosMB.excluirMembro}"
                                                       oncomplete="#{rich:component('excluir-membro-modal')}.hide();"
                                                       reRender="membro-form" />
                                </td>
                                <td align="center" width="50%">
                                    <a4j:commandButton value="não"
                                                       onclick="#{rich:component('excluir-membro-modal')}.hide();return false;" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </h:form>
            </a4j:region>
        </rich:modalPanel>
    </ui:composition>
</html>

